setMandatorySystemGestureInsets

Sets mandatory system gesture insets in pixels.

The mandatory system gesture insets represent the area of a window where mandatory system gestures have priority and may consume some or all touch input, e.g. due to the a system bar occupying it, or it being reserved for touch-only gestures.

In contrast to regular system gestures, mandatory system gestures cannot be overridden by setSystemGestureExclusionRects.

The insets passed will only take effect when running on API 29 and above.

Return

itself

See also